package cate.game.activity.dailysign.msg;

import cate.game.activity.dailysign.DailySignActivity;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBSignDaily;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "签到信息")
public class DailySignInfoResp implements MsgOutput {
    @NoteField("活动数据")
    public DailySignActivity activity;
    @NoteField("上次充值时间")
    public long lastPayTime;

    @Override
    public MsgConfig conf() {
        return MsgIdBSignDaily.SIGN_DAILY_INFO_RESP;
    }

    public DailySignInfoResp() {}

    public DailySignInfoResp(DailySignActivity activity) {
        lastPayTime = activity.getRole().getPay().lastPayTime;
        this.activity = activity;
    }
}
